package com.byxy.service.impl;

import java.util.List;

import javax.annotation.Resource;
import javax.transaction.Transactional;

import org.springframework.stereotype.Service;

import com.byxy.dao.LyAgencyDao;
import com.byxy.entity.LyAgency;
import com.byxy.service.LyAgencyService;
@Service
@Transactional
public class LyAgencyServiceImpl implements LyAgencyService {

	@Resource
	private LyAgencyDao lyAgencyDao;
	@Override
	public List<LyAgency> find() {
		// TODO Auto-generated method stub
		return lyAgencyDao.find();
	}

	@Override
	public void add(LyAgency a) {
		// TODO Auto-generated method stub
		lyAgencyDao.add(a);
	}

	@Override
	public LyAgency getById(Integer id) {
		// TODO Auto-generated method stub
		return lyAgencyDao.getById(id);
	}

	@Override
	public void update(LyAgency a) {
		// TODO Auto-generated method stub
		lyAgencyDao.update(a);
	}

	@Override
	public void deleteById(Integer id) {
		// TODO Auto-generated method stub
		lyAgencyDao.deleteById(id);
	}

	@Override
	public List<LyAgency> find(int curPage, int pageCount) {
		// TODO Auto-generated method stub
		return lyAgencyDao.find(curPage, pageCount);
	}

	@Override
	public int count() {
		// TODO Auto-generated method stub
		return lyAgencyDao.count();
	}

}
